package com.qmctl.rest.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.qmctl.rest.bean.selldeliveryorder.InvoiceClazz;

import java.io.Serializable;
@SuppressWarnings("serial")
@Entity
@Table(name="tSellInvoice",schema="")
public class SellInvoice implements Serializable{
  @Id
  private String sellInvoiceId;
  private String deliveryOrderId;
  private String invoiceId;
  private String type;
  private String header;
  private double amount;
  private String content;
  private String code;

  private String invoiceNumber;
  public String getSellInvoiceId() {
	return sellInvoiceId;
}
public void setSellInvoiceId(String sellInvoiceId) {
	this.sellInvoiceId = sellInvoiceId;
}
public String getCode() {
	return code;
}
public void setCode(String code) {
	this.code = code;
}

  public SellInvoice(){
  }
  public SellInvoice(InvoiceClazz BeanClazz){
    deliveryOrderId ="";
    invoiceId ="";
    type = BeanClazz.getType();
    header = BeanClazz.getHeader();
    amount = BeanClazz.getAmount();
    content = BeanClazz.getContent();
  }

  public String getDeliveryOrderId(){
    return deliveryOrderId;
  }
  public void setDeliveryOrderId(String sDeliveryOrderId){
    deliveryOrderId = sDeliveryOrderId;
  }
  public String getInvoiceId(){
    return invoiceId;
  }
  public void setInvoiceId(String sInvoiceId){
    invoiceId = sInvoiceId;
  }
  public String getType(){
    return type;
  }
  public void setType(String sType){
    type = sType;
  }
  public String getHeader(){
    return header;
  }
  public void setHeader(String sHeader){
    header = sHeader;
  }
  public double getAmount(){
    return amount;
}
  public void setAmount(double dAmount){
    amount = dAmount;
  }
  public String getContent(){
    return content;
  }
  public void setContent(String sContent){
    content = sContent;
  }
public String getInvoiceNumber() {
	return invoiceNumber;
}
public void setInvoiceNumber(String invoiceNumber) {
	this.invoiceNumber = invoiceNumber;
}
}
